sudo umount /media/doit
sudo mkdir /media/doit2
sudo mount -t vfat -w /dev/sdb1 /media/doit2
I’ve always had this problem. Up until now, I’ve been copying mostly files between a Windows machine and a Ubuntu machine. Samba has made that part a breeze.
But now I’ve two Ubuntu systems- and somehow the Samba share on one Ubuntu machine cannot be seen by the other. Then how can I copy files across the two Ubuntu machines?
It turns out- to be painless. The key is sftp. It’s similar to ftp- but more secure.
There’s two ways to use sftp. One is via the command line. First get the name or IP address of the remote machine. Use ipconfig on the remote machine to get the IP address. From the local machine, type sftp [ip address].
quantboy@linuxlaptop:~/downloads$ sftp 192.168.2.2
Connecting to 192.168.2.2…
The authenticity of host '192.168.2.2 (192.168.2.2)' can't be established.
RSA key fingerprint is 6e:ac:cf:e1:02:75:a4:50:b7:ce:5c:9e:a1:ea:72:39.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.2' (RSA) to the list of known hosts.
quantboy@192.168.2.2's password:
sftp> ls
Data DVD.gbp bin books
chinese_study desktop dev
It’s used just like ftp. Type help to get usage help.
The other way to use sftp is via Nautilus. In Nautilus, select from the menu, File -> Connect to Server. Select Service Type SSH. Enter the Server address, then Connect.
Once connected, one can [...]
I ran into a curious problem on my newly installed Ubuntu workstation. When playing avi files in Totem, the video image inevitably comes out in black and white. I’ve never had this problem before on my other Ubuntu workstations- although their video chips I’m sure are different.
Googling the problem, I found a solution here.
Just run on the command line:
gstreamer-properties
Select Video>Output> X Window System (No Xv)
And it worked!
Without installing a headless Ubuntu server-
Instructions on howtoforge.com.
Add a new shared folder: sudo vi /etc/samba/smb.conf
Restart samba service: sudo /etc/init.d/samba restart
Formatting a partition in Linux
sudo mkfs -V -t ext3 /dev/hda6
-V = verbose
-t = file system type
Mount the partition to an existing node in the file directory
sudo mount -o rw /dev/hda6 /media/cda
Change the owner of the file directory so it can be written
sudo chown -R [userid] /media/cda
For some unknown reason, during my last machine startup, my Ubuntu laptop popped up the error dialog box with the message “Unable to start the settings manager ‘gnome-settings-daemon’ “.
I had no clue what went wrong. I didn’t remember changing any special preferences. Nevertheless, I googled and found a solution here.
The solution is to add two lines to the file: /etc/X11/Xsession.d/55gnome-session_gnomerc
# ADD FOLLOWING LINE
rm -f /tmp/session-is-gnome
BASESTARTUP=`basename “$STARTUP” | cut -d\ -f1`
if [ "$BASESTARTUP" = gnome-session -o \
\( "$BASESTARTUP" = x-session-manager -a \
"`readlink /etc/alternatives/x-session-manager`" = \
/usr/bin/gnome-session \) ]; then
GNOMERC=$HOME/.gnomerc
if [ -r "$GNOMERC" ]; then
. “$GNOMERC”
fi
# ADD FOLLOWING LINE
touch /tmp/session-is-gnome
fi
For avi files, install totem-gstreamer.
For real media files, install real player, realplayer_10.0.9-0.1_i386.deb. Type: sudo dpkg -i realplayer_10.0.9-0.1_386.deb to install. To uninstall, type sudo dpkg -r realplayer.