Dual boot Dell XPS 13 2018 with Ubuntu 18.10

It was time for a new computer at work, as my old MacBook from 2014 was starting to cost more than I was willing to put into it – adapter failures, magsafe port dodgy, battery needed to change etc. I have been dual booting Ubuntu up until 18.x as I just can’t stand macos (believe me, I have tried, it is not just my cup of tea, but that is off-topic).

So, my workplace let us developers decide on what hardware and tools we want to work with. This time, I wanted to get a laptop that had Linux pre-installed, and the natural choice was then the Dell’s XPS 13 2018 model. And so I ordered one, together with a TB16 box. It arrived, But – when I started it there was no Ubuntu, just a Windows 10 install. The horror! There had been a mix-up at my company, and so the Windows version was ordered instead of an Ubuntu one. No big deal, as the hardware still was the same I thought, and so I changed the plans, to installing Ubuntu 18.10 with a dual boot of Windows 10. However, as there were some things that had to be done, I thought I would save you some time by sharing my notes from the experience.

First, you need to partition the disk to leave some space for Ubuntu. Usually I use GParted, but instead of building an live-USB-boot, I just downloaded the freeware partition program AOMEI Partition Assistant for Windows, and resized the biggest partition to approximately 100 GB (I’m not using Windows very much) and left 300 GB+ of free space for the Ubuntu install.

Then we need a usb-stick and a fresh ISO of Ubuntu 18.10. Use TuxBoot from Windows to make a bootable USB-stick from the ISO.


After that, we need to reboot, and change some default Dell bios settings:

* At boot, Press the F2 key (or alternately press the F12 key then select the option to enter the BIOS setup).
* Disable Secure Boot as some options otherwise won’t be choosable
* In POST Behavior, Select – Fastboot the select the Thorough option.
* In System Configuration -Select USB/Thunderbolt Configuration -Enable Thunderbolt Boot Support
* In the General Tab, Advanced Boot Configuration, check Enable Legacy Option ROMs & Enable UEFI Network Stack if not already checked (Figure 3):
* Change the RAID mode for disks to AHCI, otherwise Ubuntu won’t find the disks
* Reboot the system, the USB Type-C device should now appear in the boot options.
* Windows wont start, so you need to start it in Safe Mode, F8 and it will repair itself.

With Windows all fine, and free space for Ubuntu, hit F12 upon upon boot, and you should see the USB stick with your Ubuntu live distribution. I’ll leave the installation itself to you, as there are many guides available for that.

After the installation, check out the list 10 Things To Do After Installing Ubuntu 18.10

Some things I also do after an Install:

Enjoy your nice Ubuntu 18.10 experience!!


”Open in terminal” in Ubuntu (Nautilus)

One irritating thing is when you open the fileexplorer in Ubuntu, and quickly would like to open a terminal, and do some commands, without having to resort to walking down the filestructure in the terminal first. There’s an easy solution:

Install the ‘nautilus-open-terminal’ plugin from either Ubuntu software center, or by doing a sudo apt-get install nautilus-open-terminal in a terminal.

Don’t forget to restart nautilus (sudo killall nautilus) after installation for the changes to take effect ( or logout/login again).

Voila, now you have a menu option called ‘Open in terminal’ whenever you rightclick on something in nautilus.

Fix USB floppydrive support in Ubuntu 12.04

I love old computers. I hate floppy’s. But.. Sometimes i gotta fetch something over a floppy to a retrocomputer, or maybe read some old floppybased documents. And, so i need a working USB floppydrive for my PC. Yes, even though floppydrives are ancient relics. it happens that people have to use them.

Sadly, floppydisk support haven’t been working Ubuntu since a while ago. And the fix doesn’t seem to be highly prioritized, just look at number of comments in the bugreport. I think i saw a zillion workarounds for this, but the easiest one must be this:

1. Download the last udisk package that worked correctly .i.e. udisks 1.0.1 (not the updates one)

2. Install the package from the terminal with commando sudo dpkg -i udisks_1.0.1-1build1_amd64.deb 

After the install(downgrade), Ubuntu should be able to mount your USB floppydrive correct. Remember that sometimes regular Ubuntupdates can overwrite the installed old udisksversion. Should it happen, just reinstall it again.

I really hope someone fixes the bug soon – I would like for Linux to be a great and easy platform for retrostuff too.

Välj Java JVM version i Ubuntu

Ibland har man behovet av att ha flera Java JVM:er installerade, till exempel om man vill ha Oracle och en gammal SUN-JVM installerad. För att snabbt byta mellan dessa, använd kommandona:

sudo update-alternatives –config java
sudo update-alternatives –config javac

i terminalen. De visar en lista på vilka JVM: som är installerade, samt låter dig välja vilken du vill använda för tillfället.

Ubuntu 10.04 – splendid!

Häromdagen släpptes nya Ubuntu. Som de flesta antagligen redan vet är Ubuntu ett fritt alternativ till Windows och Mac OS X.

Några av det bästa förändringarna i denna version är inte radikalt stora, utan det är de många små ändringarna som gör detta till en bra release. Utseende, re-brand, boottid, molntjänster, buggfixar, den nya satsningen på bra kom-igång-dokumentation m.m

Recensioner finns det gott om på nätet – här är några:
IDG – Här rockar Ubuntu loss
TimesOnline – Why Ubuntu excites me more than Windows or Macintosh
Zdnet – Never a better time to switch

Jo, det är dags att ta GNU/Linux på allvar som ett bra alternativ till Windows/Apple”. Det som för några år sedan innebar sena kvällar med pillande i ett terminalfönster är inte svårare än att stoppa i en skiva och köra installationsprogrammet. Bra testkandidater för den som är nyfiken är någon äldre dator med Xp/Vista på som man upplever ”segat till” sig.

(Ja,Windows 7 är jättebra, själv dualbootar jag på jobbet. Man ska välja rätt verktyg. Slutsatsen för mig att jag inte ser någon anledning att köra Windows eller Mac OS privat längre. Så är det bara. Sedan finns det ju frihetsaspekten också…)

Testar du, så har du nytta av dessa två länkar också förresten:
Förslag på alternativa applikationer i Ubuntu Lucid
10 Things to do after installing Lucid
Och absolut den här fylliga guiden!
Post install lucid – what to do!

Have fun!

Top things to do after installing Karmic (x64)

After doing some installs of Karmic, Ubuntu for friends, i started to get bored by adding stuff manually after the default install. A good guide for setting up some basic missing things is Silent number’s top things to after installing Karmic /. Read that!

Well, i added most of the stuff he recommends and some other things too, like Flash for x64 , (thanks) in a very basic setupscript, which maybe handy for new installs of Karmic. It installs a lot of tools and utillites too.

To use:
1. Copy the text to a new textfile, put it in your homefolder, rename to something fitting – eg.
2. Open a Terminal: Program->Accesories->Terminal
3. write: sudo chmod 755 whatever you named your script. This is to make it executable
4. Before your run the script, remove any stuff that you dont want. eg: maybe you dont want OneSwarm, then remove the section, and so on.
5. run the script, in terminal: sudo sh whatever you named your script
6. have fun with your new apps.

#! /bin/bash

#Get a good start, update and fix any inconsistences
sudo apt-get update
sudo apt-get upgrade
#sudo apt-get dist-upgrade

#REPO add##################################################################

sudo add-apt-repository ppa:ubuntu-tweak-testing/ppa #ubuntu tweak
#sudo add-apt-repository ppa:team-xbmc/karmic-ppa #xmbc
#sudo add-apt-repository ppa:sportman1280/ppa No karmic ppa for synkron yet
sudo add-apt-repository ppa:dylanmccall/ppa #day of ubuntu
sudo add-apt-repository ppa:hydr0g3n/ppa #qbittorrent 2
sudo add-apt-repository ppa:~songbird-daily/+archive/ppa
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa #thunderbird 3, mozilla upd

echo ‘deb http://archive.getdeb.net/ubuntu karmic-getdeb apps’ >> /etc/apt/sources.list.d/deb.getdeb.sources.list #getdeb repo
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add –

echo ‘deb http://deb.torproject.org/torproject.org karmic main’ >> /etc/apt/sources.list.d/deb.torproject.sources.list #Tor repo
gpg –keyserver keys.gnupg.net –recv 886DDD89
gpg –export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add –

#Add playdeb repo
wget -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add –

#add mediabuntu repo
sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list –output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get –yes -q –allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
#REPO add END#############################################################

#install some stuff ———————————————————————————
sudo apt-get install libdvdcss2 w32codecs mkvtoolnix samba ntp libdvdread4 ubuntu-restricted-extras miro
sudo apt-get install electricsheep simple-ccsm arc-colors community-themes gdm-themes gnome-backgrounds gnome-colors
sudo apt-get install gnome-themes gnome-themes-extras gnome-themes-more metacity-themes shiki-colors avant-window-navigator
sudo apt-get install pitivi pidgin pidgin-otr pidgin-themes pidgin-facebookchat istanbul jokosher gufw cheese
sudo apt-get install mnemosyne anki solang inkscape gimp gwibber clamtk unetbootin rcconf
sudo apt-get install backintime-gnome jedit bluefish gmountiso likewise-open
#truecrypt skype
sudo apt-get install gparted virtualbox-ose ubuntu-tweak lirc xbmc flashplugin-nonfree
sudo apt-get install comix cbrpager dia thunderbird filezilla googleearth sun-java6-jre wireshark bleachbit
sudo apt-get install wine dosbox mame e-uae day-of-ubuntu-wallpaper songbird

#Cool games!
sudo apt-get install freecol playonlinux liquidwar gbrainy warzone2100 frozen-bubble pingus
#sudo apt-get install smokinguns warsow astromenace hedgewars eternallands ufoai nexuiz fretsonfire

#Anonymous, filesharing,vpn etc——————————————-
sudo apt-get install qbittorrent tor tor-geoipdb vidalia network-manager-pptp
sudo wget http://mirror.i2p2.de/i2pinstall_0.7.8.exe
java -jar i2pinstall-0.7.8.exe

#oneswarm install
wget http://oneswarm.cs.washington.edu/builds/OneSwarm_0_6_9_linux_x86_64.tar.gz
tar -xvzf OneSwarm_0_6_9_linux_x86_64.tar.gz
gksudo ”rm -r /usr/bin/OneSwarm”
gksudo ”mv OneSwarm /usr/bin/OneSwarm”
rm OneSwarm*.tar.gz
gksudo echo ‘[Desktop Entry]’ > ./oneswarm.desktop
gksudo echo ‘Encoding=UTF-8’ >> ./oneswarm.desktop
gksudo echo ‘Version=1.0’ >> ./oneswarm.desktop
gksudo echo ‘Exec=/usr/bin/OneSwarm/OneSwarm’ >> ./oneswarm.desktop
gksudo echo ‘Icon=/usr/share/pixmaps/songbird.png’ >> ./oneswarm.desktop #Fix a real icon some day
gksudo echo ‘Terminal=false’ >> ./oneswarm.desktop
gksudo echo ‘Name=OneSwarm’ >> ./oneswarm.desktop
gksudo echo ‘Comment=OneSvarm’ >> ./oneswarm.desktop
gksudo echo ‘Categories=Network’ >> ./oneswarm.desktop
gksudo echo ‘Type=Application’ >> ./oneswarm.desktop
gksudo ”mv oneswarm.desktop /usr/share/applications/oneswarm.desktop”

anw=`zenity –question –text ”Do you want install the alpha of FLASH 64? WARNING – this willl wipe earlier flash, gnash and related wrapper ”; echo $?`
if [ $anw = 0 ] ; then
gksudo ”echo 0”

# Script created by
# Romeo-Adrian Cioaba romeo.cioaba@spotonearth.com

echo ”Stopping any Firefox that might be running”
sudo killall -9 firefox

echo ”Removing any other flash plugin previously installed:”
sudo apt-get remove -y –purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper

echo ”Installing Flash Player 10”
cd ~
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-
tar zxvf libflashplayer-
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/

echo ”Linking the libraries so Firefox and apps depending on XULRunner (vuze, liferea, rsswol) can find it.”
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/

# now doing some cleaning up:
sudo rm -rf libflashplayer.so
sudo rm -rf libflashplayer-

zenity –info –text=”Installation of FLASH 64 cancelled.”


This is version 0.02 of the installscript, so please, suggestions are welcome.
If something breaks, don’t blame me:)
Use it anyway you want!

Handelsbanken och Ubuntu

Här sitter man glad ihågen och ska prova sitt handelsbanken, för de stödjer ju GNU/Linux och specifikt Ubuntu.
Kollar hemsidan. Japp, stämmer.

Följer instruktionerna.
Ah, nexus, deras klient verkar fungera.
Installerar drivrutinen för Ubuntu… *Pang* fel systemarkitektur… endast 32-bitars.
Nej! Det är inte sant, man tillhandahåller bara ett paket för 32-bitar…
Till och med den gamla laptopen från 2005 jag skulle köra detta på har en 64-bits processor.

Snälla Handelsbanken, klargör detta i systemkraven – eller ännu bättre, tillhandahåll ett paket för x64 också. Det kan inte vara så tufft om 32-bitars versionen redan finns. De flesta som installerar Ubuntu idag kör nog en x64 variant.

Jag skrev ett mail och frågade, publicerar svaret här sedan.

Samma problem gäller skandiabanken . och förmodligen alla banker på den här listan.
Jag blir mer är riktig arg. Här omsätter man som bank ofantliga summor, men kan inte anställa några extra utvecklare för ett ge fullgott stöd till MacOS samt Linux.Hur sniket är inte detta av dem.
Jag uppmanar alla som kör ett GNU/Linux OS att skriva till sin bank och kontrollera detta! Och du som kör Mac gör nog klokt att kontrollera att det fungerar för dig med..