Mount network drives in ClearOS

Create a SSH connection to your ClearOS server with putty or via terminal

1. Create a folder to mount share on

mkdir /mnt/folder

2. Open FSTAB

nano /etc/fstab

3. Add share definition/s to FSTAB, add the following line to the end. Once happy save (CTRL-O)

\\compname\sharenam     /mnt/folder  cifs auto,rw,username=usernamel,password=password 0 0

4.Mount Shares

mount -a

And your done….

Raspberry Pi als netwerk – en AirPrint printserver

Raspi_Colour_R

Installatie:

  • download de laatste raspbian wheezy van de download pagina van Raspberry
  • download Win32DiskImager hier en installeer het.
  • Start Win32DiskImageren en gebruik het gedownloade schijfbestand van raspbian. Dit wordt naar dan op de SD kaart geschreven

Eerste boot:

  • Je komt in het configuratiemenu van raspbian. Dit kun je naderhand nog terug oproepen door het commando sudo raspi-config uit te voeren. Hier moet je zeker volgende stappen uitvoeren:
    1. expand-rootfs zo krijg je de volledige schijfruimte terug beschikbaar na de volgende reboot
    2. memory-split hiermee wijs je het nodige geheugen toe aan de GPU, voor server is 16MB voldoende
    3. SSH server activeren
    4. Standaard paswoord wijzigen voor de gebruiker pi
    5. voor de rest kun je nog alle instellingen voor tijd en toetsenbord ook aanpassen
  • druk op Finish en de Raspberry Pi zal herstarten

Static ip adres toewijzen:

  • log in met de gebruikersnaam pi  en je paswoord (standaard raspberry) als de Raspberry is opgestart
  • ifconfig eth0  zal je het DHCP toegewezen ip adres weergeven
  • sudo nano /etc/network/interfaces
  • wijzig iface eth0 init dhcp naar iface eth0 static
  • voeg volgende lijnen toe:
    1. address your.static.ip.address
    2. netmask 255.255.255.0
    3. gateway your.router.ip.address
  • sudo reboot om alle instellingen te activeren

CUPS printer software installeren:

  • de raspbian software updaten
    1. sudo apt-get update
    2. sudo apt-get upgrade
  • installeren van de printersoftware
    • sudo apt-get install avahi-daemon cups cups-pdf cups-driver-gutenprint openprinting-ppds python-cups python-daemon python-pkg-resources
  • na de installatie stellen we toegang van buitenaf in
    1. sudo nano /etc/cups/cupsd.conf
      1. zoek  Listen localhost:631  en verander het in #Listen localhost:631
      2. daaronder voeg je Port 631
      3. Daarna voegen we in de secties , en vlak voor de regel telkens de regel Allow @Local toe om de toegang te beperken tot gebruikers van de Raspberry Pi. Sla je wijzigingen op met Ctrl+O en sluit nano af met Ctrl+X.
        putty-raspberry

Beheerder toevoegen:

  • Herstart de cups server door sudo service cups restart uit te voeren
  • voeg de gebruiker pi toe aan de beheerders van de printserver door sudo adduser pi lpadmin uit te voeren

Bezoek nu in je webbrowser de url https://IP:631/, waarbij IP het IP-adres van je Raspberry Pi is. Als je een waarschuwing krijgt over het beveiligingscertificaat, negeer dat dan

cups_main

VirtualBox usb apparaten laten werken

virtualvox-logo

Eerst moet je de Oracle VM VirtualBox Guest additions installeren.

Daarna moet je jezelf aan de vboxusers groep toewijzen

I had the same problem and fixed it by clicking in the VirtualBox group of my user. You can access it installing gnome-system-tools (it does not come with Ubuntu 12.04 Precise Pangolin), either via the Ubuntu Software Center, Synaptic or by typing in the terminal:

sudo apt-get install gnome-system-tools

Remember that to paste in the terminal you have to use CTRL+SHIFT+V, as opposed to CTRL+V

You will probably have to enter your password to allow the installation and add a Y (as in yes) to finish installing the packages.

Then you head to your Dash home and type users. You will see two applications. The good one is Users and Groups.

You then have to click on Advanced settings for your user and enter your password.

Now you will be shown a window with three tabs. Click on User Privileges. Find the line that says Use Virtualbox virtualization solution and then OK.

Moving VirtualBox Virtual Machines

virtualvox-logo

Vandaag Ubuntu geinstalleerd op mijn desktop en VirtualBox geinstalleerd.

Nu kwam het moeilijke: de virtual machines samen met hun snapshots overzetten. Na wat google werk een methode gevonden.

  • Kopieer de VirtualBox VMs map uit je home directory naar een schijf.
  • Kopieer de .VirtualBox map uit je home directory naar een schijf.

Op de nieuwe computer:

  • Kopieer de virtual machines naar de VirtualBox VMs map in je home directory (die je zelf aangemaakt hebt)
  • Kopieer het bestand VirtualBox.xml uit de opgeslagen .VirtualBox map naar de nieuwe .VirtualBox map in je home directory.

Start nu VirtualBox op en je zal al je virtual machines zien, samen met hun snapshots.

Mocht je nu een error dat de uuid van de vbox niet hetzelfde is als die in de config file, dan moet je handmatig de VirtualBox.xml aanpassen en daar de uuid ingeven die je ziet voor desbetreffende vbox.

 

Debian Wheezy

debian-wheezy-100036446-large

Juist Debian 7.0 (Wheezy) geinstalleerd op mijn desktop.

Maar sommige programma’s zijn enkel beschikbaar voor windows, dus heb ik virtualbox geinstalleerd samen met windows XP. Alles verliep heel vlot, tot dat ik usb apparaten wilde gebruiken in virtualbox. Ik kon ze niet selecteren.

Dus effe google gebruikt en de oplossing vrij snel gevonden.

After having installed Virtual Box together with the Oracle Extension Pack and the Guest Additions we are able to activate USB devices attached to the host by right clicking the little icon on the right bottom of Virtual Box Manager to select the USB device.

By doing so the USB device will be deactivated from the host. After installing the appropriate drivers on the guest you will have full access to the device from the guest.

Note: On the host users need to be in the group vboxusers to allow access on USB devices from the guest. Run sudo usermod -a -G vboxusers <YOUR_USER_NAME>, logout and login again to get the effective change.

Wat je moet doen is applicatie Terminal als root opstarten, want root zit in de sudo lijst. En dan het commando ingeven zoals hierboven