So caja is unresponsive and I can't kill it in Ubuntu Mate 18.04. I took a screenshot showing what system monitor says about it.
I tried killing it in the terminal with sudo kill 2719. I tried killing it in System Monitor. What do I do?
I'm running Ubuntu Mate 18.04. I installed onedrive and did all the authorisation stuff and it works fine when I run it from the terminal.
I ran startup applications and used onedrive --monitor
as I would in the terminal but it fails to run on boot. The program is in my usr/bin folder and I tried putting the whole path. Nope. I also tried just running onedrive without the --monitor
. Nope.
Preferably I'd also like it to relaunch automatically if it fails. I'm wondering can it be run as a service? Not sure what's going on. Any suggestions?
So I have this folder of movies that looks like
Current
movie1 (1962).mkv
movie 2b (1993)
movie 2b (1993) cd1.mp4
movie 2b (1993) cd1.srt
movie 3 (2019).avi
movie 1942 (2012).mkv
And I would like to move them into another folder that contains the folder structure by year with the right movies in each folder. If there is a sub-folder like with movie 2b I don't mind of that folder is stripped or kept - whatever is easier as long as it goes into the right year. The source and destination are in the same partition so I would rather use mv than rsync.
Sorted
1962
1993
2012
2019
I got this far based on another question/answers in the forum but I know it's wrong because I don't know how to strip the brackets from the year and I don't know how to specify a source and destination folder.
for f in *.*; do
if [ -f "$f" ] # does file exist?
then
dir=$(echo "$f" | grep -o "([0-9][0-9][0-9][0-9])" | head -1)
if [ "$dir" ] # check if string found
then
mkdir -p "$dir" # create dir
mv "$f" "$dir" # move file into new dir
else
echo "INCORRECT FILE FORMAT: \""$f"\"" # print error if file format is unexpected
fi
fi
done
Any suggestions?
I just updated my system and now my rutorrent isn't working. When I go to the web page, I get this error
JS error: [http://192.168.0.36/rutorrent/js/jquery.js : 2] TypeError: a is null
I searched for that, and all I found is that it fixed itself after a reboot for someone else. Tried that, not for me.
I am using nginx as a web server for rutorrent.
I installed it using these instructions.
Any ideas?
So Banshee has me really confused. I have 2 folders - Music and Audiobooks which are empty. I move some m4b audiobooks into the Audiobooks folder and I have unchecked that it should move them to the Library. (If its checked, it moves them into the Music folder instead of the audiobooks one) but I do have checked that it should keep the files and folders organised. When I do a refresh it loads the audiobooks into the music library AGAIN. Huh? Even worse, it doesnt reorganised filenames or folders in the Audiobooks folder. It has no effect. They are all named exactly the same as they were before and there is no folder structure. All I want is properly organised Music and Audiobook collections. I've been trying to get it done for the last 3 days with Rhythmbox and Amarok and now Banshee with zero luck. OMG This shouldn't be that hard! Don't other Ubuntu users have collections of Music and Audiobooks?
I am struggling to get this to work properly.
This works in terminal
sudo bindfs -u dave /media/dave/Documentary2Lin/RAIDMain/Documentary2 ~/shares/Documentary2
How do I get this to work in fstab?
I've tried
/media/dave/Documentary2Lin/RAIDMain/Documentary2 ~/shares/Documentary2 fuse.bindfs force-user=dave perms=a=rX 0 0
It gives an error in fstab
I would like to get a list of all my hard disks including the following information. Serial Number, UUID, Size and the names and sizes of all of the partitions on each disk. I found this which gets me half way there
for file in $(find /sys/block/[sh][dr]*/device/ /sys/block/[sh][dr]*/ -maxdepth 1 2>/dev/null|egrep '(vendor|model|/size|/sys/block/[sh][dr]./$)'|sort); do [ -d $file ] && echo -e "\n -- DEVICE $(basename $file) --" && continue; grep -H . $file|sed -e 's|^/sys/block/||;s|/d*e*v*i*c*e*/*\(.*\):| \1 |'|awk '{if($2 == "size") {printf "%-3s %-6s: %d MB\n", $1,$2,(($3 * 512)/1048576)} else {printf "%-3s %-6s: ", $1,$2;for(i=3;i<NF;++i) printf "%s ",$i;print $(NF) };}';done
My preference is for it to go to a text file. I assume I can do that just by adding "> ~/disks.txt" to the end of the line
Would really appreciate it if someone could help me figure out how to modify the command so it adds partition names and sizes.
I just installed the latest updates to Ubuntu 14.04. Everything seems to be working properly. rtorrent is working. nginx is running php5-fpm is running and yet when I try to connect to rtorrent with rutorrent, rutorrent comes up but doesnt connect to rtorrent.
I did notice one thing - for some reason my ip address has changed. It was 192.168.0.34 and now it's 192.168.0.36 but the connection is working fine and rtorrent is uploading and downloading fine.
I'm finding it hard to diagnose because all of the individual parts seem to be working but the whole is not. Would really appreciate some help with trying to diagnose the problem and fixing it.
Here are the errors I get
[26.06.2014 00:13:59] Bad response from server: (502 [error,getplugins]) <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.6.0</center> </body> </html>
[26.06.2014 00:13:59] Bad response from server: (502 [error,getuisettings]) <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.6.0</center> </body> </html>
I’ve searched all over the internet and everybody suggests the same thing - that adding --exclude=´.*´
should exclude hidden files and folders from an rsync. It doesn’t. I´ve also tried adding a slash and/or double quotes eg. --exclude=¨\.*¨
Nothing seems to work. AGH!! Would really appreciate some help.
I have set up a special user for read only samba shares. I set him up in Samba and as a system user. I shared a couple of folders but that user cannot access them. I know samba is working because I also shared them with the main user of the system which is an admin account and it works fine.
How can I allow this user to have read permissions on all the directories I want to share without changing anything for any other users of the system? For example, I don't want to give him ownership of any of the files/directories. Just ongoing recursive read access. ongoing recursive is important. If someone adds a file or directory, I still want him to automatically be able to read it.