Akin to the MBP variant posted previously:
sudo mkdir squid.conf
sudo cp squid.conf/* /etc/squid.conf
sudo nano /etc/dansguardian/dansguardian.conf
cd /etc/dansguardian/languages
sudo rm -R swedish
sudo rm -R spanish
sudo rm -R slovak
sudo rm -R czech
sudo rm -R hebrew
sudo rm -R polish
sudo rm -R turkish
sudo rm -R malay
sudo rm -R danish
sudo rm -R dutch
sudo rm -R italian
sudo rm -R chinesegb2312
sudo rm -R chinesebig5
sudo rm -R german
sudo rm -R hungarian
sudo rm -R lithuanian
sudo rm -R russian-koi8-r
sudo rm -R indonesian
sudo rm -R ptbrazilian
sudo rm -R portuguese
sudo rm -R russian-1251
sudo rm -R bulgarian
sudo rm -R japanese
sudo nano /etc/dansguardian/languages/ukenglish/template.html
sudo nano /etc/dansguardian/dansguardian.conf
sudo /etc/init.d/dansguardian restart
sudo ufw default DENY
sudo ufw ALLOW 8080
sudo ufw enablef
sudo squid help
sudo dpkg --get-selections > installed-software.txt
cp .bash_history /home/name/bash_history
refresh_squidguard_bl.sh
sudo apt-get install clamav-daemon clamav-freshclam
sudo adduser --system --no-create-home --disabled-password --disabled-login --shell /bin/false --group --home /var/lib/clamav clamav
sudo adduser --system --no-create-home --disabled-password --disabled-login --shell /bin/false --group --home /var/lib/clamav clamav
sudo apt-get install clamav-daemon clamav-freshclam
sudo /etc/init.d/clamav-freshclam restart
cd /etc/clamav
sudo nano freshclam.conf
sudo nano /etc/dansguardian/languages/ukenglish/template.html
sudo squid -k shutdown
sudo squid reload
sudo squid -k check
sudo /etc/init.d/squid reload
sudo /etc/init.d/dansguardian restart
sudo freshclam
cd /etc/squid
sudo nano squid.conf
cd squid.conf
sudo rm -R squid.conf
vi #/.bashrc
whereis x11vnc
df -H
x11vnc -auth /var/gdm/:0.Xauth
sudo nano /etc/gdm/gdm.conf
sudo nano /etc/gdm/Init/Default
sudo nano /etc/gdm/PreSession/Default
ls -l
cp .bash_history /home/name/bash_ubuntu.txt
sudo chmod og=r -R *
nmap -sL
ping 192.168.1.255
arp -a
nmap -sP 192.168.1.1/24
nmap -sP 192.168.2.1/15
sudo fdisk -l
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get purge
sudo apt-get install squid squid-common
sudo apt-get remove squid squid-common
sudo apt-get remove virtualbox
sudo dpkg --get-selections > installed-software.txt
sudo apt-get remove virtualbox-ose-qt
sudo apt-get purge virtualbox-ose-qt
sudo apt-get autoremove
sudo gedit /etc/fstab
sudo gedit /boot/grub/menu.lst
sudo tcpdump
cd /media/sda1
sudo apt-get install arp-scan
netstat -a
netstat -r
netstat
ntop
nmap 192.168.2.1
nmap 192.168.2.5
nmap 192.168.2.3
nmap 192.168.2.2
nmap 192.168.2.4
nmap 192.168.2.13
ping 192.168.2.1
lspci -v
iwconfig
sudo gedit /etc/network/interfaces
ifconfig -a
sudo route add -host 255.255.255.255 dev eth0
sudo gedit /etc/default/dhcp3-server
cp .bash_history /home/name/bash_ubuntu.txt
sudo gedit /etc/dhcpd.conf
ifconfig
sudo /etc/init.d/dhcp3-server restart
sudo /usr/sbin/dhcpd3
sudo gedit /etc/network/interfaces
sudo /etc/init.d/ssh start
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh restart
sudo arp-scan 192.168.2.1/25
cd /etc
screen
screen -rd
grep ipp2p
lsmod | grep ipp2p
lsmod | grep firefox
locale -a
locale
whereis dumpkeys
whereis prep
whereis grep
sudo apt-get install build-essential
sudo chmod og=r -R *
crontab -e
sudo /etc/init.d/ssh restart
sudo mkdir squid.conf
xrandr
xrandr --output LVDS --mode 1024x768
xrandr--addmode default 1280x1024_60.00
xrandr --addmode default 1280x1024_60.00
xrandr --addmode default 1280x1024
xrandr --addmode default 1084x768
xrandr help
xrandr --output --mode 1024x768
service gdm stop
Xorg -configure
dpkg-reconfigure -phigh xserver-xorg
sudo dpkg-reconfigure -phigh xserver-xorg
gksudo gedit /etc/X11/xorg.conf
lspci | grep -i nvidia
cp .bash_history /home/name/bash_ubuntu.txt
cat /proc/sys/net/ipv4/ip_forward
echo "1"> /proc/sys/net/ipv4/ip_forward
sudo echo "1"> /proc/sys/net/ipv4/ip_forward
man x11vnc
sudo /etc/init.d/gdm restart
sudo nano .bash_history
sudo crontab -e
x11vnc
service gdm restart
sudo service gdm restart
sudo apt-get install wireshark
sudo gedit /etc/apt/sources.list
sudo apt-get update
sudo apt-get autoremove
sudo crontab -e
sudo find /var/log -type f
sudo find /var/log -type f -delete
cd /var/log
ls
dh -h
gedit .bash_history
It can be seen I have tampered with Squid. But that is all so far!
Search This Blog
Sunday, 14 March 2010
Managing and accessing the server
My earlier post referred to not having a permanent keyboard / mouse / monitor set up with server.
How, then, to actually manage it? There seem to be three main ways:
Firstly, SSH. This would be the techie way and allows everything to be handled via command line. Indeed, with PuTTY, this can even be handled remotely with no issues. The downside is that this is the techie way, and being familiar and used to GUIs, this can be daunting.
Secondly, Webmin. This package is installed in Synaptic, and then accessed via a web interface (once again, including remotely). This is incredibly flexible and allows pretty much total control over the server.
Thirdly, remote access through VNC. This allows the server to run in a window on the client machine and work exactly as if the user were on that machine. This (once configured) offers the "easiest" route.
Options 1 and 2 are pretty much self explanatory. Number 3 is the more interesting. I installed Chicken of the VNC on the MBP, as it came recommended.
It does seem that I need to precede use of CotVNC with a couple of commands on the server (which I access via SSH initially):
x11vnc
sudo service gdm restart
But, it doesn't always want to work. I've Googled for the answer (with no success), but there are two main issues I encounter - the first is that attempting to connect via CotVNC requires me to sign in, at which point I get options of either Reconnect or Okay. So I try and sign in again. And again. And again. This can take a dozen attempts before connection suddenly happens, without anything otherwise changing!
The other issue is what I call the keyboard going berserk. I hit a key on my MBP, and the display on the host just repeats the key without cessation. The only way to prevent this seems to be a server reboot!
Fortunately, I have now been loaned a monitor by parents, so I can always fall back on the traditional solution to view the server!
How, then, to actually manage it? There seem to be three main ways:
Firstly, SSH. This would be the techie way and allows everything to be handled via command line. Indeed, with PuTTY, this can even be handled remotely with no issues. The downside is that this is the techie way, and being familiar and used to GUIs, this can be daunting.
Secondly, Webmin. This package is installed in Synaptic, and then accessed via a web interface (once again, including remotely). This is incredibly flexible and allows pretty much total control over the server.
Thirdly, remote access through VNC. This allows the server to run in a window on the client machine and work exactly as if the user were on that machine. This (once configured) offers the "easiest" route.
Options 1 and 2 are pretty much self explanatory. Number 3 is the more interesting. I installed Chicken of the VNC on the MBP, as it came recommended.
It does seem that I need to precede use of CotVNC with a couple of commands on the server (which I access via SSH initially):
x11vnc
sudo service gdm restart
But, it doesn't always want to work. I've Googled for the answer (with no success), but there are two main issues I encounter - the first is that attempting to connect via CotVNC requires me to sign in, at which point I get options of either Reconnect or Okay. So I try and sign in again. And again. And again. This can take a dozen attempts before connection suddenly happens, without anything otherwise changing!
The other issue is what I call the keyboard going berserk. I hit a key on my MBP, and the display on the host just repeats the key without cessation. The only way to prevent this seems to be a server reboot!
Fortunately, I have now been loaned a monitor by parents, so I can always fall back on the traditional solution to view the server!
Labels:
Ubuntu
Server setup - backing up with rsync
Now the server was built and OS configured, I needed to actually start using it.
The first stage was simple - a copy of the files from my Mac over to the server, and making photos, music, etc, available in shared areas so all machines could connect.
Going forward, the intention was to run a command that would backup changes to files. For this, I used rsync, and set up three basic commands:
First, for Music -
rsync /usr/bin/ssh -ave --stats --delete --progress --exclude /iTunes\ Music/Downloads/Podcasts/ ~/Music/iTunes/"iTunes Music"/ /Volumes/1tb/"iTunes Music"
This command copies everything in iTunes except the Podcasts folder. The --delete means that files deleted on the Mac are also deleted on the server.
Then for Photos -
rsync /usr/bin/ssh -ave --stats --delete --progress --exclude /iPod\ Photo\ Cache/ --exclude /iPhoto\ Library --exclude /Photo\ Booth/ ~/Pictures/ /Volumes/Mac_backup/Pictures/
Likewise, excluding some folders that are not required
and finally for other Docs -
rsync /usr/bin/ssh -ave --stats --delete --progress --exclude /Downloads/ --exclude /Music --exclude /Pictures --exclude /Public --exclude /Sites --exclude /Dropbox --exclude /DWHELPER --exclude /Desktop --exclude /Library/iMovie --exclude /Library/Printers --exclude /Library/ --exclude "/Library/iTunes/iPod Software Updates" --exclude "/Library/iTunes Plug-ins" --exclude /Library/Fonts --exclude /Library/Colors --exclude "/Library/Application Support/iDVD" --exclude "/Library/Application Support/Aperture" --exclude "/Library/Application Support/" --exclude "/Library/Application Support/Adobe" --exclude "/Documents/Pictures alias" --exclude "/Documents/Drop Box alias" --exclude "/Documents/Movies alias" --exclude "/Documents/bin alias" --exclude "/Documents/iTunes Music alias" --exclude .Trash/ --exclude .dropbox/ --exclude "/Movies/Home Vids" --exclude "/Movies/Mac Ads" --exclude "/Movies/Madness - Total Madness Videos" --exclude /Movies/QPR --exclude /Movies/Morrissey --exclude /Movies/Radiohead --exclude /Movies/Factory ~/ /Volumes/Mac_backup/
The aim here is to remove a number of areas that either change infrequently or just do not need to be backed up.
Currently, there are not backup scripts set up on other machines, purely because they are mainly used for web browsing or are themselves referring to files on the network.
The scripts are saved as .sh files in /Users/Bin
The first stage was simple - a copy of the files from my Mac over to the server, and making photos, music, etc, available in shared areas so all machines could connect.
Going forward, the intention was to run a command that would backup changes to files. For this, I used rsync, and set up three basic commands:
First, for Music -
rsync /usr/bin/ssh -ave --stats --delete --progress --exclude /iTunes\ Music/Downloads/Podcasts/ ~/Music/iTunes/"iTunes Music"/ /Volumes/1tb/"iTunes Music"
This command copies everything in iTunes except the Podcasts folder. The --delete means that files deleted on the Mac are also deleted on the server.
Then for Photos -
rsync /usr/bin/ssh -ave --stats --delete --progress --exclude /iPod\ Photo\ Cache/ --exclude /iPhoto\ Library --exclude /Photo\ Booth/ ~/Pictures/ /Volumes/Mac_backup/Pictures/
Likewise, excluding some folders that are not required
and finally for other Docs -
rsync /usr/bin/ssh -ave --stats --delete --progress --exclude /Downloads/ --exclude /Music --exclude /Pictures --exclude /Public --exclude /Sites --exclude /Dropbox --exclude /DWHELPER --exclude /Desktop --exclude /Library/iMovie --exclude /Library/Printers --exclude /Library/ --exclude "/Library/iTunes/iPod Software Updates" --exclude "/Library/iTunes Plug-ins" --exclude /Library/Fonts --exclude /Library/Colors --exclude "/Library/Application Support/iDVD" --exclude "/Library/Application Support/Aperture" --exclude "/Library/Application Support/" --exclude "/Library/Application Support/Adobe" --exclude "/Documents/Pictures alias" --exclude "/Documents/Drop Box alias" --exclude "/Documents/Movies alias" --exclude "/Documents/bin alias" --exclude "/Documents/iTunes Music alias" --exclude .Trash/ --exclude .dropbox/ --exclude "/Movies/Home Vids" --exclude "/Movies/Mac Ads" --exclude "/Movies/Madness - Total Madness Videos" --exclude /Movies/QPR --exclude /Movies/Morrissey --exclude /Movies/Radiohead --exclude /Movies/Factory ~/ /Volumes/Mac_backup/
The aim here is to remove a number of areas that either change infrequently or just do not need to be backed up.
Currently, there are not backup scripts set up on other machines, purely because they are mainly used for web browsing or are themselves referring to files on the network.
The scripts are saved as .sh files in /Users/Bin
Building a server
For some time I pondered over setting myself up a home server. The main reasons being:
Crucial 1GB kit (2x512MB) DDR2 667MHz/PC2-5300 Memory Non-ECC Unbuffered CL5 Lifetime Warranty - £12.36
Antec EarthWatts 380W 80%+ Efficiency PSU - 80mm Fan 4x SATA PCI-E - £33.90
Antec 300 Three Hundred Black Case - No PSU - £40.86
Spec as follows:
Impressively spacious and unbeatably reliable, the Antec 300 Three Hundred is an unbeatable enclosure. Despite its eminently portable frame, the Antec 300 Three Hundred has enough room for an NVIDIA 8800 series graphics card, as well as six hard drives and a standard ATX motherboard. A cable management compartment keeps your system organized and the airflow unobstructed. A 120mm rear fan and 140mm top fan ensure that the case runs cool even when playing the most demanding games, while the sleek black finish gives it an extra stylish edge.
Features:
* No PSU included:
To optimize performance of your Antec 300 Three Hundred, your choice of power supply is crucial. Antec strongly recommends choosing from our NeoPower or TruePower series.
* 9 Drive Bays:
• External 3 x 5.25"
• Internal 6 x 3.5" for HDD
* Cooling System:
• 1 rear 120 x 25 mm TriCool™ Fan with 3-speed switch control Included
• 1 top special 140 x 25 mm TriCool™ Fan with 3-speed switch control Included
• 2 front (not included) 120 mm fans to cool the hard drives
• 1 side (not included) 120 x 25 mm Fan to cool graphic cards
* Washable air filters reduces dust build up in your system, which helps keep your system cooler
* Perforated front bezel for maximum air intake
* 7 expansion slots
* Top mounted I/O ports for easy access
• 2 x USB 2.0
• HDA & AC’97 Audio In and Out
I already had some hard drives I could use (including the original 120GB from my MacBook Pro), but I also bought this one....
Hitachi DeskStar 1TB Hard Drive SATAII 7200rpm 16MB Cache - OEM - £43.45
and finally a cable:
Plexus Serial ATA 2.0 7-pin Cable (Red) 46cm / 18" - £1.73
(From ebuyer)
VIA iDOT PC2500E PC-1 Mainboard - 1.5Ghz C7-D @ £36.40 ex VAT = £36.40 ex VAT
(from LinITX.com)
Spec was as follows:
Please Note: The PC2500E Mainboard has both a 20pin ATX power connector and also a 4pin 12V Power Connector (P4 Power Connector). Power must be applied to both connectors for the board to work correctly. If you need any advice on suitable power supplies for this mainboard, please contact us via email or telephone.
The VIA iDot PC2500E solution is based on the FlexATX form factor providing a processor and motherboard in one low cost solution. It features the latest technology within the 1.5GHz VIA C7-D processor, an ultra power efficient processor based on the Esther core. The VIA C7-D processor is also the worlds first carbon free processor.
The PC2500E Mainboard provides full desktop performance and a rich digital media experience and also boasts leading memory, multimedai,connectivity and storage technologies including DDR2, hardware MPEG-2 decoding acceleration and SATA.
The PC2500E Mainboard is fully compatible with Windows XP and Linux Operating systems.
Specifications:
The intention was then to temporarily borrow a monitor, keyboard and mouse, and then manage everything remotely, hence no expenditure there. I suppose the thing that stands out is actually how inexpensive this all was - really only a couple of hundred pounds!
So, assembly.
Well, this wasn't too difficult actually. The rear of the case opened easily, and attaching the motherboard was straightforward, as was adding the PSU in the correct section.
The box has a multitude of bays for hard drives, and attaching these was straightforward too.
So, turned the PSU on. Little blue light came on, but it wouldn't power up properly. Only after reading properly what was said about the motherboard did I notice that there are TWO places where power needs to be connected. Once done, that was fine.
So now to install an OS. I stuck with Ubuntu, as I was already familiar with it, and this would work well on a server. I can do this by USB, I thought. Well, it turned out I couldn't, despite formatting a USB stick several times, it resolutely failed to boot.
As can be seen from the foregoing, I had not bought nor installed an optical drive. However, as the Acers also do not have optical drives, I had also purchased this:
LiteOn eSAU108 Slim 8x DVD±RW DL & RAM Hi Speed USB - Retail Box White - £41.26
This allowed me to work from an optical drive install.
I tried Xubuntu first, the theory being that I didn't need Open Office, Games, and other standard Ubuntu install elements. Sadly, this also meant that other aspects I would need would not be available either.
So the server is now running Ubuntu!
- Backup facility
- Shared files for use around house
- More control over network traffic
- A MacBook Pro
- Two Acer Aspires running Ubuntu
- Dell PC dual booting Win XP and Ubuntu
- HP laptop dual booting Vista and Ubuntu
Crucial 1GB kit (2x512MB) DDR2 667MHz/PC2-5300 Memory Non-ECC Unbuffered CL5 Lifetime Warranty - £12.36
Antec EarthWatts 380W 80%+ Efficiency PSU - 80mm Fan 4x SATA PCI-E - £33.90
Antec 300 Three Hundred Black Case - No PSU - £40.86
Spec as follows:
Impressively spacious and unbeatably reliable, the Antec 300 Three Hundred is an unbeatable enclosure. Despite its eminently portable frame, the Antec 300 Three Hundred has enough room for an NVIDIA 8800 series graphics card, as well as six hard drives and a standard ATX motherboard. A cable management compartment keeps your system organized and the airflow unobstructed. A 120mm rear fan and 140mm top fan ensure that the case runs cool even when playing the most demanding games, while the sleek black finish gives it an extra stylish edge.
Features:
* No PSU included:
To optimize performance of your Antec 300 Three Hundred, your choice of power supply is crucial. Antec strongly recommends choosing from our NeoPower or TruePower series.
* 9 Drive Bays:
• External 3 x 5.25"
• Internal 6 x 3.5" for HDD
* Cooling System:
• 1 rear 120 x 25 mm TriCool™ Fan with 3-speed switch control Included
• 1 top special 140 x 25 mm TriCool™ Fan with 3-speed switch control Included
• 2 front (not included) 120 mm fans to cool the hard drives
• 1 side (not included) 120 x 25 mm Fan to cool graphic cards
* Washable air filters reduces dust build up in your system, which helps keep your system cooler
* Perforated front bezel for maximum air intake
* 7 expansion slots
* Top mounted I/O ports for easy access
• 2 x USB 2.0
• HDA & AC’97 Audio In and Out
I already had some hard drives I could use (including the original 120GB from my MacBook Pro), but I also bought this one....
Hitachi DeskStar 1TB Hard Drive SATAII 7200rpm 16MB Cache - OEM - £43.45
and finally a cable:
Plexus Serial ATA 2.0 7-pin Cable (Red) 46cm / 18" - £1.73
(From ebuyer)
VIA iDOT PC2500E PC-1 Mainboard - 1.5Ghz C7-D @ £36.40 ex VAT = £36.40 ex VAT
(from LinITX.com)
Spec was as follows:
Please Note: The PC2500E Mainboard has both a 20pin ATX power connector and also a 4pin 12V Power Connector (P4 Power Connector). Power must be applied to both connectors for the board to work correctly. If you need any advice on suitable power supplies for this mainboard, please contact us via email or telephone.
The VIA iDot PC2500E solution is based on the FlexATX form factor providing a processor and motherboard in one low cost solution. It features the latest technology within the 1.5GHz VIA C7-D processor, an ultra power efficient processor based on the Esther core. The VIA C7-D processor is also the worlds first carbon free processor.
The PC2500E Mainboard provides full desktop performance and a rich digital media experience and also boasts leading memory, multimedai,connectivity and storage technologies including DDR2, hardware MPEG-2 decoding acceleration and SATA.
The PC2500E Mainboard is fully compatible with Windows XP and Linux Operating systems.
Specifications:
- Processor: VIA C7-D 1.5GHz
- Chipset: VIA CN700 + VT8237R Plus
- Memory: 2 x DDRII slots, Up to 2GB Max (2 x 1GB)
- LAN: VIA VT6103L PHY 10/100 Base-T Ethernet
- Audio: Realtek ALC655(support 6 channels)
- Graphic: VIA UniChrome Pro IGP(VIA CN700)
- Storage Interface: 2x PATA connectors(Up to ATA133) & 2x SATA connectors(Up to SATA150)
- Rear Panel I/O Ports:
- 1x 10/100 LAN port
- 1x VGA connector
- 4x USB 2.0 ports
- 1x Line out / Line in / mic jack
- 2x PS2 connectors
- 1x Parallel Port (LPT port)
- 1x Serial Port (Com port)
- Onboard I/O:
- 2x USB 2.0 connectors (for 4 additional USB 2.0 ports)
- 1x Front-audio connector (Mic and Line Out)
- 1x Front-panel connector
- 2x PCI Slots 1x Floppy drive connector
- 1x CD Audio-in connector
- 2x Fan connectors: CPU/Sys FAN
- 1x ATX 20pin Power Connector
- 1x +12V 4pin Power Connector
- 1x CNR Slot
- 1x IR connector
- Power Management: Support ACPI S1/S4/S5 Mode
- Dimensions: 190mm x 228mm (W x L) (FlexATX Form Factor)
The intention was then to temporarily borrow a monitor, keyboard and mouse, and then manage everything remotely, hence no expenditure there. I suppose the thing that stands out is actually how inexpensive this all was - really only a couple of hundred pounds!
So, assembly.
Well, this wasn't too difficult actually. The rear of the case opened easily, and attaching the motherboard was straightforward, as was adding the PSU in the correct section.
The box has a multitude of bays for hard drives, and attaching these was straightforward too.
So, turned the PSU on. Little blue light came on, but it wouldn't power up properly. Only after reading properly what was said about the motherboard did I notice that there are TWO places where power needs to be connected. Once done, that was fine.
So now to install an OS. I stuck with Ubuntu, as I was already familiar with it, and this would work well on a server. I can do this by USB, I thought. Well, it turned out I couldn't, despite formatting a USB stick several times, it resolutely failed to boot.
As can be seen from the foregoing, I had not bought nor installed an optical drive. However, as the Acers also do not have optical drives, I had also purchased this:
LiteOn eSAU108 Slim 8x DVD±RW DL & RAM Hi Speed USB - Retail Box White - £41.26
This allowed me to work from an optical drive install.
I tried Xubuntu first, the theory being that I didn't need Open Office, Games, and other standard Ubuntu install elements. Sadly, this also meant that other aspects I would need would not be available either.
So the server is now running Ubuntu!
Tuesday, 23 February 2010
Mounting a drive twice
I didn't think such a thing was possible. Not only is it so, but I have inadvertently done so, as I could see by my disk usage going haywire.
Disk space = 120GB.
Disk usage analyser shows 55GB taken, but df -h shows only around 5GB free. However, a glance at this post shows my problem.
The command of
produces this outcome:
root@ubuntu:~# sudo du -hx --max-depth=1 /media
4.0K /media/floppy0
55G /media/sdc1
4.0K /media/cdrom0
4.0K /media/sdb1
4.0K /media/sda1
55G /media
So it is mounted within itself.
But how to solve?
Well, fortunately it was no more difficult than umount /media/sdc1
But the shortage of space was still there, which after some investigating, and using Disk Usage Analyzer, seemed to be a result of logs
sudo du -h --max-depth=1 / | sort -n
and
tail /var/log/syslog
(and running the second command on other logs) allowed the culprits to be found, deleted, and space restored....
Disk space = 120GB.
Disk usage analyser shows 55GB taken, but df -h shows only around 5GB free. However, a glance at this post shows my problem.
The command of
sudo du -hx --max-depth=1 /media
produces this outcome:
root@ubuntu:~# sudo du -hx --max-depth=1 /media
4.0K /media/floppy0
55G /media/sdc1
4.0K /media/cdrom0
4.0K /media/sdb1
4.0K /media/sda1
55G /media
So it is mounted within itself.
But how to solve?
Well, fortunately it was no more difficult than umount /media/sdc1
But the shortage of space was still there, which after some investigating, and using Disk Usage Analyzer, seemed to be a result of logs
sudo du -h --max-depth=1 / | sort -n
and
tail /var/log/syslog
(and running the second command on other logs) allowed the culprits to be found, deleted, and space restored....
Labels:
Ubuntu
Wednesday, 10 February 2010
Excel - Count if cell contains specific text
Example - =COUNTIF($Q$4:$Q$225,"*decline*")
Labels:
Excel
Tuesday, 9 February 2010
DVD not playing on Acer
My post and response on Ubuntu Forums:
My son has an Acer Aspire One running Ubuntu, and has VLC installed.
As this machine doesn't have a DVD drive, he has an external LiteOn DVD multiformat drive.
He decided last night he wanted to watch Paul Blart Mall Cop (he's only 8!). The DVD went in the drive, the DVD showed on the desktop, and the message came up about "Open with VLC". Which we tried - and VLC closed.
I tried various other ways to get the disk to play - opening VLC and then choosing disk, double clicking on mounted icon on desktop, none would work.
I then installed Totem Movie Player to see if that would cope any better. It didn't.
The one thing I am wondering is about region - we have used the DVD drive in the past to play region free DVDs that I had burned myself, but this may be the first time we have tried one with region encoding.
Could that be it? If so, how do I determine in Ubuntu what region I have and how can I amend it if necessary?
Response:
I think, DVD is encrypted.
You need to add medibuntu's repository, and install libdvdcss2 package.
Add repository first using
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
Then
sudo apt-get install libdvdcss2
My son has an Acer Aspire One running Ubuntu, and has VLC installed.
As this machine doesn't have a DVD drive, he has an external LiteOn DVD multiformat drive.
He decided last night he wanted to watch Paul Blart Mall Cop (he's only 8!). The DVD went in the drive, the DVD showed on the desktop, and the message came up about "Open with VLC". Which we tried - and VLC closed.
I tried various other ways to get the disk to play - opening VLC and then choosing disk, double clicking on mounted icon on desktop, none would work.
I then installed Totem Movie Player to see if that would cope any better. It didn't.
The one thing I am wondering is about region - we have used the DVD drive in the past to play region free DVDs that I had burned myself, but this may be the first time we have tried one with region encoding.
Could that be it? If so, how do I determine in Ubuntu what region I have and how can I amend it if necessary?
Response:
I think, DVD is encrypted.
You need to add medibuntu's repository, and install libdvdcss2 package.
Add repository first using
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
Then
sudo apt-get install libdvdcss2
Labels:
Ubuntu
Subscribe to:
Posts (Atom)