Symlink Advice


Recommended Posts

OK, I've got Windows 7 on one HDD and Kubuntu 9.10 on a different HDD. I'm trying to get my Firefox profile in Kubuntu to use the places.sqlite bookmarks in my Windows 7 Firefox profile.

Both profiles are for Firefox 3.5.5 and have a places.sqlite file which stores history, bookmarks, etc

Can I write a symlink in the Kubuntu Firefox profile that would make it utilize the places.sqlite file in the Windows 7 Firefox profile?

If so, any guidance or hints as to what the syntax would look like?

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/
Share on other sites

I'm sure you've got a good reason for doing so, but wouldn't xmarks be better? Used to be called FoxMarks

Anyway...

First you need to have your Win7 partition mounted.

Second, the command would look something similar;

ln [options] source destination

ln -s /path/to/source/places.sqlite /path/to/destination/places.sqlite

Edit:

Careful doing this, as when you open Firefox it copies places.sqlite to places.sqlite-journal and zeroes the .sqlite file. And does vice versa when closing.

So if Firefox crashes in Windows and you don't re-open it, when you switch to Kubuntu the file will essentially be empty.

Edited by YaZoR
Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591885838
Share on other sites

ln [options] source destination

ln -s /path/to/source/places.sqlite /path/to/destination/places.sqlite

Thanks for the speedy response! I'm currently using Xmarks and it works fine - I'd just rather not have to rely on something having an internet link to sync my bookmarks on the same computer.

I'll try doing the link when I get home! Thanks for the Caution too!

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591885892
Share on other sites

It does work for me, 2 Linux and one windows. But sometime, new file are created with the wrong permissions. chmod 777 -R is needed sometime.

Elv13, thanks for the confirmation and advice but I have no clue where I'd put that in the syntax below, but feel free to educate me further.

Ok, here's what I'm thinking I'll need to do to get my Linux profile to use my Windows places.sqlite file (little confused on which is 'source' and which is 'destination' :unsure: ). Can one of you Linux veterans give it a look and let me know if I've got it right? Do I need to use sudo for this?

Open terminal

# Get to the right directory

cd /home/<me>/.mozilla/firefox/<profile>.default

# Rename the original file for backup in case I screw it up

rename places.sqlite bak_places.sqlite

# Create the symbolic link so linux profile uses windows profile places.sqlite

ln -s /media/NTFS_Windows_7/Users/<me>/AppData/Roaming/Mozilla/Firefox/Profiles/<profile>.default/places.sqlite places.sqlite

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591902620
Share on other sites

You can share the complete .mozilla folder between different OSes (windows and Linux, in this senario). But when one operating system create a new file, it will set the write permissions to itself. In both windows and Linux, only the current user can write in his/her personal files. The "chmod" command is the linux command to ajust permissions. You will have to give read and write permissions to those files. The "safe" line would +rw, but most peoples give "every" rights to file when they have those kind of problems. "777" is the short command to "everything for me", "everything to my user group" and "everything for everyone else". Its binary:

1 = read, 1 = write and 1 = execute. So:

7 = 111 = read, write and execute

6 = 110 = read and write

5 = 101 = execute and read

4 = 100 = read only

3 = 011 = write and execute (you will never see this one)

2 = 010 = write

1 = 001 = execute

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591903418
Share on other sites

# Rename the original file for backup in case I screw it up

rename places.sqlite bak_places.sqlite

No such command rename (unless you have it aliased). To rename you use the move command (mv). But you don't want to rename it you want to copy it (cp) to another filename so you have the original

# Create the symbolic link so linux profile uses windows profile places.sqlite

ln -s /media/NTFS_Windows_7/Users/<me>/AppData/Roaming/Mozilla/Firefox/Profiles/<profile>.default/places.sqlite ./places.sqlite

I'd put a ./ infront of the destination link for best practice since you've cd into it. Simply means 'current directory'

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591904080
Share on other sites

UPDATED - Open terminal

# Get to the right directory

cd /home/<me>/.mozilla/firefox/<profile>.default

# Rename the original file for backup in case I screw it up

cp places.sqlite bak_places.sqlite

# Create the symbolic link so linux profile uses windows profile places.sqlite

ln -s /media/NTFS_Windows_7/Users/<me>/AppData/Roaming/Mozilla/Firefox/Profiles/<profile>.default./places.sqlite places.sqlite

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591904388
Share on other sites

I'd put a ./ infront of the destination link for best practice since you've cd into it. Simply means 'current directory'

No, for symlink it is better to avoid relative path. "./" will not be converted, it will stay as it is, so if the symlink is interpreted the wrong way, it will brake, and it will not will full path.

Salgoth:

ln -s /media/NTFS_Windows_7/Users/<you>/AppData/Roaming/Mozilla/ /home/<you>/.mozilla

Don't mess with profiles, its much easier to share the whole thing.

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591905310
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Linux 7.1 arrives with an NTFS overhaul and major hardware performance boosts by Paul Hill The founder of the Linux kernel has just announced the availability of Linux 7.1. This is a stable version of the kernel that will now be tested by various Linux distributions before it is shipped to users through update managers. Some users, like those on Debian, for example, might not get it for a long time, if at all, while Fedora users can expect it in the near future. With Linux 7.1 out on time, the merge window for Linux 7.2 is now open, giving contributors the opportunity to send in major new features that have been waiting for the last two months. Torvalds warned that he is currently travelling and will be in another timezone, so timing for the merge window may be irregular due to timezone differences and limited internet access. Torvalds said that he has already fetched early pull requests to allow him to do some offline work, but the travel could still cause disruption. Right now, he is not planning to extend the release, but did consider it. He said he might later regret not extending, though. In terms of this last week of development for Linux 7.1, Torvalds said there were no major or alarming changes. This week consisted mostly of smaller driver updates to GPU, networking, and sound, networking fixes, trace tooling fixes, and misc minor fixes. The shortlog this week lists fixes for driver bugs, memory leaks, I/O and USB fixes, networking and RDMA fixes, DRM/graphics fixes, and tooling and verification improvements. Specific fixes include USB series heap-overflow and buffer overflow fixes, and multiple use-after-free, memory-leak, and refcount corrections across subsystems such as i2c, zram, gpio, and net. There are fixes for graphics drivers, including amdgpu, i915, and virtio, as well as hypervisor and virtualization tweaks affecting mshv, vmbus, and hyperv. According to Phoronix, anyone running Linux 7.1 should look out for the new NTFS driver, Intel FRED for improved performance on Panther Lake and future CPUs, faster graphics with Intel Arc Battlemage, and improvements for older AMD Radeon GPUs. If you are running Linux on your computer and everything is fine, then you don’t need to worry about updating to Linux 7.1 as a priority; just wait for it to be pushed to you. If you have tried Linux on hardware but it didn’t work properly, trying again with a distro that uses Linux 7.1 could cause Linux to work on your machine, thanks to the new hardware support.
    • you can also do this with this tool: PowerSettingsExplorer made by mbk1969 at 3dguru forum.. I found it by accident researching on modern standby and annoying quirks of it in 2022
    • AB Download Manager 1.9.1 by Razvan Serea AB Download Manager is an open-source, feature-rich download manager designed to accelerate downloads, organize files efficiently, and provide seamless control over downloads. With support for multiple connections, resume capability, and an intuitive interface, it enhances the downloading experience for users seeking speed and reliability. The software integrates with various browsers, enabling quick link grabbing and batch downloading. It supports HTTP, HTTPS, and FTP protocols, ensuring broad compatibility with different file sources. Users can schedule downloads, set speed limits, and categorize files automatically for better organization. AB Download Manager is lightweight yet powerful, making it a great alternative to proprietary download managers. Its open-source nature allows developers to contribute, customize, and improve the software as needed. Whether you're downloading large files, managing multiple downloads at once, or seeking an ad-free experience, this tool offers a practical and efficient solution. Key features of AB Download Manager: Multi-Connection Support – Accelerates downloads by splitting files into multiple segments. Resume Capability – Allows paused or interrupted downloads to be resumed without starting over. Batch Downloading – Supports downloading multiple files at once for improved efficiency. Browser Integration – Captures download links directly from browsers for seamless operation. HTTP, HTTPS, and FTP Support – Ensures compatibility with a wide range of file sources. Download Scheduling – Enables users to automate downloads at specific times. Speed Limiting – Lets users control bandwidth usage for optimized performance. File Categorization – Automatically organizes downloaded files into designated folders. User-Friendly Interface – Simple and intuitive design for easy navigation. Cross-Platform Compatibility – Works on multiple operating systems. Ad-Free Experience – No intrusive ads or tracking for a clean user experience. AB Download Manager 1.9.1 changelog: Added An option to customize notification sounds (#1259) Fixed Ongoing notification was laggy on Samsung One UI devices (#1269) Improved Updated Translations Minor UI/UX improvements Download: AB Download Manager 1.9.1 | Portable | ~80.0 MB (Open Source) Download: ARM64 | Portable ARM64 | Android Links: AB Download Manager Website | Github Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • watching him because of the Mr Klinton cat
    • yup dude, ADS on this website are terrible
  • Recent Achievements

    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      506
    2. 2
      +Edouard
      196
    3. 3
      PsYcHoKiLLa
      140
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!